package es.us.lsi.aws.api.server;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class AbstractServlet extends HttpServlet {

	private static final long serialVersionUID = 4413881424744239198L;

	public void doGet(HttpServletRequest req, HttpServletResponse res) {
		process(req, res);
	}

	public void doPost(HttpServletRequest req, HttpServletResponse res) {
		process(req, res);
	}

	public void doPut(HttpServletRequest req, HttpServletResponse res) {
		process(req, res);
	}

	public void doDelete(HttpServletRequest req, HttpServletResponse res) {
		process(req, res);
	}
	
	public abstract void process(HttpServletRequest req, HttpServletResponse res);

}
